<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%-- jsp 页面本质上是一个Servlet， tomcat会将jsp文件，映射成一个java文件--%>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用戶注冊</title>
</head>

<body>
<style>
    form {
        width: 500px;
        margin: auto;
    }
</style>

<form action="/java-web-demo1/read_form_servlet" method="post">
    <table border="0">
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="username"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="password" name="password"></td>
        </tr>
        <tr>
            <td>性别：</td>
            <td>
                <input type="radio" name="sex" value="男" />男
                <input type="radio" name="sex" value="女" /> 女
            </td>
        </tr>

        <tr>
            <td>电话号码：</td>
            <td><input type="text" name="tel" /></td>
        </tr>

        <tr>
            <td>家庭住址：</td>
            <td><input type="text" name="address" /></td>
        </tr>
        <tr>
            <td>爱好:</td>
            <td>
                <input type="checkbox" name="favor" value="足球"> 足球
                <input type="checkbox" name="favor" value="篮球"> 篮球
                <input type="checkbox" name="favor" value="排球"> 排球
            </td>
        </tr>

        <tr>
            <td colspan="2" align="center"><input type="submit" value="提交注册"></td>
        </tr>
    </table>
</form>
</body>

</html>